package de.jamm.aws;

import de.hshannover.inform.muehle.strategy.Slot;

public class FieldSlot implements Slot {
	private char column;
	private int row;
	private boolean isMuehle;
	private int side = 0;
	
	public FieldSlot(char column, int row, int side){
		setColumn(column);
		setRow(row);
		setSide(side);
		checkMuehle();
	}
	public FieldSlot(char column, int row, int side, boolean checkMuehle){
		setColumn(column);
		setRow(row);
		setSide(side);
	}
	protected void checkMuehle() {
		//if(Regeln.isMuehle(Konverter.konvertToInt(this))){
			//this.isMuehle = true;
		//}
	}
	
	protected boolean isMuehle(){
		return isMuehle;
	}
	
	protected void setMuehle(boolean muehle){
		this.isMuehle = muehle;
	}

	protected int getSide() {
		return side;
	}



	protected void setSide(int side2) {
		this.side = side2;
	}



	protected void setColumn(char column) {
		this.column = column;
	}



	protected void setRow(int row) {
		this.row = row;
	}



	@Override
	public char getColumn() {
		// TODO Auto-generated method stub
		return this.column;
	}

	@Override
	public int getRow() {
		// TODO Auto-generated method stub
		return this.row;
	}
	@Override public String toString(){
		return this.column+""+this.row;
	}

}
